"""
二维正态分布图形
"""

import numpy as np
from pylab import *
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt

x = np.linspace(-10, 10, 200)
y = x
X, Y = meshgrid(x, y)

Z = bivariate_normal(X, Y, 5, 1, 5, 0, 0)

fig = plt.figure()

ax = fig.add_subplot(111, projection='3d')

ax.plot_surface(X, Y, Z, cmap='OrRd')

plt.show()
